package twel.probenprophet.helden.heroes.helden5.jaxb;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;

import org.apache.commons.lang3.builder.ToStringBuilder;

@XmlAccessorType(XmlAccessType.FIELD)
public class SpellSkill {

	@XmlAttribute(name = "name")
	private String spellName;

	@XmlAttribute
	private Integer value;

	public SpellSkill() {
	}

	public SpellSkill(String spellName, Integer value) {
		this.setSpellName(spellName);
		this.value = value;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public String getSpellName() {
		return spellName;
	}

	public void setSpellName(String spellName) {
		this.spellName = spellName;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
